package com.wlb.test.service.quartz.example;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * @Author:wanglibing
 * @Mail:wanglibing@jd.com
 * @Date:Created in 14:29 2018/1/10
 * @Description:
 */
public class JobQuartz extends QuartzJobBean {
    private int timeout;
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println(timeout);
        System.out.println("Hello Work");
    }
    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }
}
